﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.Xpo;

namespace AgentData.Repository
{
    public class Repository<T>:DataModel.Repository.IRepository<T>
    {
        readonly XPQuery<T> query;
        public Repository(Session session)
        {
            query = new XPQuery<T>(session);
        }
        public IQueryable<T> Find(System.Linq.Expressions.Expression<Func<T, bool>> expression)
        {
            return query.Where(expression);   
        }
    }
}
